<script lang="ts" setup>
import menu from '@/composable/menu';
const route = menu.route.value;
</script>
<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/admin' }">首页</el-breadcrumb-item>
    <template v-if="route">
      <el-breadcrumb-item :to="{ path: r.path }" v-for="(r, index) of route.matched" :key="index">
        {{ r.meta.menu?.title }}
      </el-breadcrumb-item>
    </template>
  </el-breadcrumb>
</template>
<style lang="scss" scoped></style>
